<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<div title="欢迎" style="width: 100%; height: 90%; padding: 20px; overflow: hidden;">
	<%
		if (session.getAttribute("user") != null) {
	%>
	<h2>欢迎您：${user.userName}</h2>
	<a href="login.jsp">注销</a><br>
	<%
		} else {
	%>
	请您先登录！<a href="login.jsp">登录</a>
	<%
		response.setHeader("refresh", "0; URL=login.jsp");
		}
	%>

	<h2>欢迎使用后台管理系统</h2>
	<div>
		Google搜索
		<form target="_blank" action="http://www.google.com/search" name="f">
			<span id="hf"></span>
			<table cellspacing=0 cellpadding=0>
				<input type=hidden name="ie" value="UTF-8">
				<input type=hidden name="oe" value="UTF-8">
				<input name="hl" type=hidden value=zh-CN>
				<tr valign=middle>
					<td width=75>&nbsp;</td>
					<td align=center><input maxLength=256 size=45 name="q"
						value="导航"><br /> <input type=submit value="Google搜索"
						name="btnG"> <input type=submit value="手气不错" name="btnI"></td>
					<td valign=top nowrap><font size=-1>&nbsp;&#8226;&nbsp;<a
							href=http://www.google.com/advanced_search?hl=zh-CN>高级搜索</a><br>&nbsp;&#8226;&nbsp;
							<a href=http://www.google.com/preferences?hl=zh-CN>使用偏好</a><br>&nbsp;&#8226;&nbsp;
							<a href=http://www.google.com/language_tools?hl=zh-CN>语言工具</a>
					</font></td>
				</tr>
				<tr>
					<td colspan=3 align=center><font size=-1> <input id=all
							type=radio name=lr value="" checked> <label for=all>搜索所有网站</label>
							<input id=ch type=radio name=lr value=lang_zh-CN|lang_zh-TW>
							<label for=ch>搜索所有中文网页</label> <input id=il type=radio name=lr
							value=lang_zh-CN> <label for=il>搜索简体中文网页</label>
					</font></td>
				</tr>
			</table>
		</form>
	</div>
	<SCRIPT language=javascript>
		function gowhere1(formname) {
			var url;
			if (formname.myselectvalue.value == "0") {
				url = "http://www.baidu.com/baidu";
				document.search_form1.tn.value = "baidu";
				formname.method = "get";
			}
			if (formname.myselectvalue.value == "1") {
				url = "http://mp3.baidu.com/m";
				document.search_form1.tn.value = "baidump3";
				document.search_form1.ct.value = "134217728";
				document.search_form1.lm.value = "-1";
			}
			if (formname.myselectvalue.value == "4") {
				document.search_form1.tn.value = "news";
				document.search_form1.cl.value = "2";
				document.search_form1.rn.value = "20";
				url = "http://news.baidu.com/ns";
			}
			if (formname.myselectvalue.value == "5") {
				document.search_form1.tn.value = "baiduiamge";
				document.search_form1.ct.value = "201326592";
				document.search_form1.cl.value = "2";
				document.search_form1.lm.value = "-1";
				url = "http://image.baidu.com/i";
			}
			if (formname.myselectvalue.value == "6") {
				url = "http://post.baidu.com/f";
				document.search_form1.tn.value = "baiduPostSearch";
				document.search_form1.ct.value = "352321536";
				document.search_form1.rn.value = "10";
				document.search_form1.lm.value = "65536";
			}

			formname.action = url;
			return true;
		}
	</SCRIPT>
	<div>
		百度搜索
		<form target="_blank" name="search_form1"
			onsubmit="return gowhere1(this)">
			<table bgcolor="#FFFFFF">
				<input name=myselectvalue type=hidden value=0>
				<input name=tn type=hidden>
				<input name=ct type=hidden>
				<input name=lm type=hidden>
				<input name=cl type=hidden>
				<input name=rn type=hidden>
				<tr>
					<td><INPUT name=myselect
						onclick=javascript:this.form.myselectvalue.value=4; type=radio
						value=0> <FONT color=#0000cc style="FONT-SIZE: 12px">新闻</FONT>

						<INPUT CHECKED name=myselect
						onclick=javascript:this.form.myselectvalue.value=0; type=radio
						value=0> <SPAN class=f12><FONT color=#0000cc
							style="FONT-SIZE: 12px">网页</FONT></SPAN> <INPUT name=myselect
						onclick=javascript:this.form.myselectvalue.value=1; type=radio
						value=1> <SPAN class=f12><FONT color=#0000cc
							style="FONT-SIZE: 12px">mp3</FONT></SPAN> <INPUT name=myselect
						onclick=javascript:this.form.myselectvalue.value=6; type=radio
						value=0> <FONT color=#0000cc style="FONT-SIZE: 12px">贴吧</FONT>
						<INPUT name=myselect
						onclick=javascript:this.form.myselectvalue.value=5; type=radio
						value=0> <FONT color=#0000cc style="FONT-SIZE: 12px">图片</FONT>
					</td>
				</tr>
				<tr>
					<td><input name=tn type=hidden value=baidu> <a
						href="http://www.baidu.com/"> <img
							src="http://img.baidu.com/img/logo-80px.gif" alt="Baidu"
							align="bottom" border="0">
					</a> <input type=text name=word size=45 value="导航"> <input
						type="submit" value="百度搜索"></td>
				</tr>
			</table>
		</form>
	</div>
</div>